package cn.edu.tsinghua.cic.ccss.dto;

import java.util.Date;

import org.forten.core.dto.GeneralDto;

public class MsgResultOfChekInDto implements GeneralDto{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1845502143697003710L;
	
	private long id;
	private Date receiptTime;
	private long cadreId;
	private String content;
	
	private CadreDto cadreDto;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Date getReceiptTime() {
		return receiptTime;
	}

	public void setReceiptTime(Date receiptTime) {
		this.receiptTime = receiptTime;
	}

	public long getCadreId() {
		return cadreId;
	}

	public void setCadreId(long cadreId) {
		this.cadreId = cadreId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public CadreDto getCadreDto() {
		return cadreDto;
	}

	public void setCadreDto(CadreDto cadreDto) {
		this.cadreDto = cadreDto;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cadreDto == null) ? 0 : cadreDto.hashCode());
		result = prime * result + (int) (cadreId ^ (cadreId >>> 32));
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + (int) (id ^ (id >>> 32));
		result = prime * result
				+ ((receiptTime == null) ? 0 : receiptTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MsgResultOfChekInDto other = (MsgResultOfChekInDto) obj;
		if (cadreDto == null) {
			if (other.cadreDto != null)
				return false;
		} else if (!cadreDto.equals(other.cadreDto))
			return false;
		if (cadreId != other.cadreId)
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (id != other.id)
			return false;
		if (receiptTime == null) {
			if (other.receiptTime != null)
				return false;
		} else if (!receiptTime.equals(other.receiptTime))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "MsgResultOfChekInDto [id=" + id + ", receiptTime="
				+ receiptTime + ", cadreId=" + cadreId + ", content=" + content
				+ ", cadreDto=" + cadreDto + "]";
	}

	
	
}
